using Tools.Domain.Specifications;
using Webshop20.Domain.Orders.Core;

namespace Webshop20.Domain.Orders.Specifications
{
    public class MinimumOrderValueSpecification : Specification<Order>
    {
        public MinimumOrderValueSpecification(decimal minimumOrderValue)
            : base(x => x.CalculateTotalNetto() >= minimumOrderValue, "MINIMUM_ORDER_VALUE_NOT_MATCHE")
        { }
    }
}